<?php

$findPage[content] = eregi_replace("\(username\)", "$display_name", $findPage[content]);
$findPage[content] = eregi_replace("\(timestamp\)", "$timestamp2", $findPage[content]);
$findPage[content] = eregi_replace("\(points\)", "$points", $findPage[content]);
$findPage[content] = eregi_replace("\(gamename\)", "$gameName2", $findPage[content]);
$findPage[content] = eregi_replace("\(gameid\)", "$game", $findPage[content]);
$findPage[content] = eregi_replace("\(hungerlevel\)", "$hungerLevel", $findPage[content]);
$findPage[content] = eregi_replace("\(pointsname\)", "$pointVar", $findPage[content]);
$findPage[content] = eregi_replace("\(usersonline\)", "$countUsersOn", $findPage[content]);
$findPage[content] = eregi_replace("\(activepetID\)", "$activePetID", $findPage[content]);
$findPage[content] = eregi_replace("\(activepet\)", "$activePetName", $findPage[content]);
$findPage[content] = eregi_replace("\(activepetlvl\)", "$activePetLevel", $findPage[content]);

if (!$getInfo2[real_name]) { $getInfo2[real_name] = "Unknown Name"; }
$findPage[content] = eregi_replace("\(realname\)", "$pointVar", $findPage[content]);

if ($getInfo2[gender] == 2) { $gender = "<font color=blue><b>Male</b></font>"; }
if ($getInfo2[gender] == 1) { $gender = "<font color=#FF0099><b>Female</b></font>"; }
if ($getInfo2[gender] == 0) { $gender = "Undecided"; }
$findPage[content] = eregi_replace("\(gender\)", "$gender", $findPage[content]);

smilies($findPage[content]);

?>